//
//  DerbyNSOdePeer.h
//  DerbyOSSampler
//
//  Created by glenn andreas on 1/6/14.
//  Copyright (c) 2014 glenn andreas. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "zmq.h"
#import "zmq_utils.h"

@class DerbyNSOdeAddress;
@interface DerbyNSOdePeer : NSObject
- (id) initWithContext: (void *) ctx address: (DerbyNSOdeAddress *) address uuid: (NSString *) uuid;
- (id) initWithContext: (void *) ctx address: (DerbyNSOdeAddress *) address;
@property (readonly) DerbyNSOdeAddress *address;
@property (strong) NSString *serviceName;
@property (strong) NSString *uuid;
@property (assign, readonly) BOOL connected;
@property (assign, readonly) BOOL ready;
- (BOOL) connect: (NSError **) error;
- (void) disconnect;
- (void) tellPeer: (NSString *) msg body: (NSString *) body;
@end
